package com.baosight.risk.mapper.ridc;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.ridc.entity.RidcRiskDesc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RidcRiskDescMapper extends BaseMapper<RidcRiskDesc> {

    Integer deleteRidcRiskDescBydocRiskId(@Param("docRiskId") String docRiskId);

    /**
     * 查找合并單元格的内容
     */
    List<RidcRiskDesc> getRidcRiskDesc(@Param("ridcRiskId") String ridcRiskId);

    /**
     * 查找小單元格的内容
     *
     * @param ridcRiskId
     * @return
     */
    List<RidcRiskDesc> getRidcRiskDescABC(@Param("ridcRiskId") String ridcRiskId, @Param("parentId") String parentId);


    Integer deleteRidcRiskDescByIds(@Param("ids") List<String> ids);

    Integer selectMaxRowOrder(@Param("ridcRiskDesc") RidcRiskDesc ridcRiskDesc);

    RidcRiskDesc selectLess(@Param("desc") RidcRiskDesc ridcRiskDesc);

    RidcRiskDesc selectBigger(@Param("desc") RidcRiskDesc ridcRiskDesc);
}